package week11.config;

import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@ConditionalOnNotWebApplication
@Configuration
public class HelloWorldAutoConfiguration {

    @Bean("stephanie")
    public ApplicationRunner initRunner()
    {
        return args -> {
            System.out.println("HelloWorld : I am Stephanie");
        };
    }
}
